package demofactory;

import com.bit.utils.FileUtils;

public class Test {






    public static void main(String[] args) {
        UserFactory userFactory1 = new AdimalFactory();
        User admail = userFactory1.createUser("zhangsan",12);
        admail.menu();
        UserFactory userFactory = new NormalFactory();
        User normal = userFactory.createUser("lisi",30);
        ProxyUser proxyUser = new ProxyUser(normal);
        proxyUser.addBook("journey to the west");

    }
}
